package com.firewolf.mybatis.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.firewolf.mybatis.User;

public interface UserMapper {
	
	//注意这里的#{name}需要和@Param("name")一致，才能正确传值
	@Select("select * from users where name=#{name} and age=#{age}")
	public User findByNameAndAge(@Param("age") int age,@Param("name") String name);
}
